package com.nuanshui.heatedloan.credit.dal.mapper;

import com.nuanshui.heatedloan.credit.form.CustomerCreditCardInfoForm;
import com.nuanshui.heatedloan.credit.form.CustomerJingDongInfoForm;
import com.nuanshui.heatedloan.credit.form.CustomerPhoneInfoForm;
import com.nuanshui.heatedloan.credit.form.CustomerSesameCreditInfoForm;
import com.nuanshui.heatedloan.credit.vo.CustomerCreditCardInfoVO;
import com.nuanshui.heatedloan.credit.vo.CustomerJingDongInfoVO;
import com.nuanshui.heatedloan.credit.vo.CustomerPhoneInfoVO;
import com.nuanshui.heatedloan.credit.vo.CustomerSesameCreditInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by wangxw on 2017/7/8.
 */
public interface OptionalAuthMapper {

    /***
     * 保存手机认证信息
     * @param CustomerPhoneInfoForm
     */
    void saveCustomerPhoneInfo(CustomerPhoneInfoForm CustomerPhoneInfoForm);



    /***
     * 保存京东认证信息
     * @param customerJingDongInfoForm
     */
    void saveCustomerJingDongInfo(CustomerJingDongInfoForm customerJingDongInfoForm);



    /***
     * 保存信用卡认证基本信息
     * @param customerCreditCardInfoForm
     */
    void saveCustomerCreditCardInfo(CustomerCreditCardInfoForm customerCreditCardInfoForm);

    /***
     * 保存芝麻认证的数据
     * @param customerSesameCreditInfoForm
     */
    void saveCustomerSesameCreditInfo(CustomerSesameCreditInfoForm customerSesameCreditInfoForm);

    /***
     * 根据用户id获取手机认证信息
     * @param userId
     * @return
     */
    CustomerPhoneInfoVO loadCustomerPhoneInfoVOByUserId(@Param("userId") String userId);

    /***
     * 根据用户id获取京东认证信息
     * @param userId
     * @return
     */
    CustomerJingDongInfoVO loadCustomerJingDongInfoVOByUserId(@Param("userId") String userId);

    /***
     * 根据userId获取信用卡认证信息
     * @param userId
     * @return
     */
    CustomerCreditCardInfoVO loadCustomerCreditCardInfoVOBuUserId(@Param("userId") String userId);

    /***
     * 根据用户id获取字码认证信息
     * @param userId
     * @return
     */
    CustomerSesameCreditInfoVO loadCustomerSesameCreditInfoVOByUserId(@Param("userId") String userId);


    /***
     * 修改芝麻的相关信息数据
     * @param customerSesameCreditInfoForm
     */
    void updateCustomerSesameCreditInfo(CustomerSesameCreditInfoForm customerSesameCreditInfoForm);


    /***
     * 更新手机记录的状态为0
     * @param userId
     */
    public void updatePhoneStatusByUserId(@Param("userId")String userId);

    /***
     * 获取所有手机的数据
     * @return
     */
    public List<CustomerPhoneInfoVO> loadAllVO();

    /***
     * 获取所有的京东数据
     * @return
     */
    public List<CustomerJingDongInfoVO> loadVOAllJingDong();

    /***
     * 获取所有的信用证数据
     * @return
     */
    public List<CustomerCreditCardInfoVO> loadCreditCardAll();

    /***
     *更新芝麻认证的状态
     * @param status
     * @param userId
     */
    public void updateSesameStatus(@Param("status")int status,@Param("userId")String userId);


}
